import { createApp } from 'vue'
import { globalRegister } from './global' //引入注册全局组件的入口
import 'normalize.css'
import './assets/css/index.scss'

//全局引入 ElementPlus
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

// import hyRequest from './service' //封装后的axios

import App from './App.vue'

import router from './router'
import store from './store'
import { setupStore } from './store'

const app = createApp(App)

app.use(globalRegister) //全局组件注册的入口
setupStore()
app.use(router)
app.use(store)
app.mount('#app')

// interface DataType {
//   data: any
//   returnCode: string
//   success: boolean
// }
// hyRequest
//   .request<DataType>({
//     url: '/home/multidata',
//     method: 'GET'
//   })
//   .then((res) => {
//     console.log(res)
//   })
